package com.woniuxy.usercoachassemble.service;

import com.woniuxy.usercoachassemble.entity.Attention;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.usercoachassemble.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-07-10
 */
public interface AttentionService extends IService<Attention> {

    List<User> selectattentionbyuserid(int userId);

    //取消关注
    void   cancellattenton(int oneself_id, int others_id);

    //添加关注
    void addattention(Attention attention);

    // 查询好友
    List<Map<String, Object>> selectFriend(int userId);

    /**
     * @description:TODO(单字段查询用户)
     * @param field 用户名/昵称/电话
     * @param roleId 角色
     * @return:  org.example.Result
     * @author: Fy浪迹、
     * @date: 2020/7/21 23:47
     */
    List<Map<String, Object>> singleFieldSelectUser(String field, Integer roleId);
}
